package net.entelijan.cobean.examples.showcase.progress;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JProgressBar;

import net.entelijan.cobean.examples.util.ExamplesUtil;
import net.entelijan.scf.DefaultShowcasePanel;
import net.miginfocom.swing.MigLayout;

public class ProgressPanel extends DefaultShowcasePanel {

	private JProgressBar progressBar = new JProgressBar();

	private JButton set0Button = new JButton("Set 0");

	private JButton set100Button = new JButton("Set 100");

	private JButton setRandomButton = new JButton("Set Random");

	private static final long serialVersionUID = 1L;

	public ProgressPanel() {
		super();
		// Layout the components
		setLayout(new MigLayout());
		add(progressBar, "w max, grow, wrap");
		add(new JPanel(), "h max, wrap");
		add(ExamplesUtil.createButtonsPanel(100, this.set0Button,
				this.set100Button, setRandomButton), "wrap");
	}

	public JProgressBar getProgressBar() {
		return progressBar;
	}

	public void setProgressBar(JProgressBar progressBar) {
		this.progressBar = progressBar;
	}

	public JButton getSet0Button() {
		return set0Button;
	}

	public void setSet0Button(JButton set0Button) {
		this.set0Button = set0Button;
	}

	public JButton getSet100Button() {
		return set100Button;
	}

	public void setSet100Button(JButton set100Button) {
		this.set100Button = set100Button;
	}

	public JButton getSetRandomButton() {
		return setRandomButton;
	}

	public void setSetRandomButton(JButton setRandomButton) {
		this.setRandomButton = setRandomButton;
	}


}
